package com.garvin.consumer.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

import javax.annotation.Resource;

/**
 * @author : garvin
 * @version V1.0
 * @date : 2020年05月26日 14:06
 */
@RestController
public class DubboConsumerController {

    @Resource
    public DubboConsumerService dubboConsumerService;

    @GetMapping("/test")
    public Mono<String> test() {
        String test = dubboConsumerService.test();
        return Mono.just(test);
    }
}
